package sevensoft.行为型模式.责任链模式;

public class HandlerB extends Handler {

    public HandlerB() {
        setHandlerDays(7);
        setName("领导");
    }

    @Override
    protected void handlerLeave(LeaveRequest leaveRequest) {

        System.out.println(getName() + "：" + leaveRequest.getDays() + "天，批准！");
    }
}
